class Post < ActiveRecord::Base
  belongs_to :valleyer, :counter_cache => true
  belongs_to :post_session
  belongs_to :created_by_valleyer,
    :class_name => 'Valleyer',
    :foreign_key => "created_by_valleyer_id"
  belongs_to :article, :counter_cache => true
  belongs_to :reship, :counter_cache => true
  belongs_to :album, :counter_cache => true
  belongs_to :photo, :counter_cache => true

  validates_presence_of :content
end
